package com.zboin.ucenter.model.enums;

/**
 * @author zhboom
 * @date 2025/7/28 21:59
 */
public enum LoginTypeEnum {
    USERNAME_PASSWORD(1, "用户名密码"),
    PHONE_PASSWORD(2, "手机密码"),
    PHONE_CODE(3, "手机验证码")
    ;

    private final Integer code;
    private final String description;

    LoginTypeEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public boolean equals(Integer code) {
        return this.code.equals(code);
    }


}
